package cn.liontalk.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/test")
@Api(value = "测试接口", tags = "UserController", description = "测试接口相关")
public class TestServiceController {

    @Value("${server.port}")
    private String port;

    @RequestMapping(value = "/demo",method = RequestMethod.GET)
    @ApiOperation(value = "测试接口获取端口", notes = "测试接口获取端口")
    public String getTestPort(@RequestParam("name") String name){
        return "I am test-serve and port is " + port  + "! welcome " + name;
    }


}
